package Java.BlackHorse.IO;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class IODemo5 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("IO\\a.txt");
        FileOutputStream fos = new FileOutputStream("IO\\b.txt",true);
        int read;
        while((read=fis.read()) != -1){
            fos.write(read);
        }
        fos.close();
        fis.close();
    }
}
